import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";
import {QrtzTriggers} from "./QrtzTriggers";


@Entity("QRTZ_CRON_TRIGGERS",{schema:"nest-mall" } )
export class QrtzCronTriggers {

   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzCronTriggerSs,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'SCHED_NAME'})
    sChedName:QrtzTriggers | null;


   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzCronTriggerSs2,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'TRIGGER_NAME'})
    tRiggerName:QrtzTriggers | null;


   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzCronTriggerSs3,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'TRIGGER_GROUP'})
    tRiggerGroup:QrtzTriggers | null;


    @Column("varchar",{ 
        nullable:false,
        length:120,
        name:"CRON_EXPRESSION"
        })
    cronExpression:string;
        

    @Column("varchar",{ 
        nullable:true,
        length:80,
        name:"TIME_ZONE_ID"
        })
    timeZoneId:string | null;
        
}
